//
//  RegularViewController.m
//  LuCaiZhu
//
//  Created by stella Ma on 2018/11/21.
//
#import "CKPuslichTool.h"
#import "UserModel.h"
#import "HandleNetProduct.h"
#import "NetworkConfig.h"
#import "RegularViewController.h"

@interface RegularViewController ()
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIButton *okButton;
@end

@implementation RegularViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIViewSetRadius(_bgView, 3, 0, nil);
    UIViewSetRadius(_okButton, 25, 0, nil);
    
}
- (IBAction)close:(id)sender {
    
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (IBAction)okPress:(id)sender {
    [HandleNetProduct updateUserIDConfirmStatusForMethod:@"InvestorConfirm" AccountPhone:[UserModel getUser].Phone Success:^(NSDictionary *data) {
        if (self.returnBlock) {
            self.returnBlock();
        }
        [self dismissViewControllerAnimated:YES completion:nil];
    } Failure:^(NSString *errorInfo) {
        
    }];
    
    
}


@end
